<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                        <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('agent/info/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                        <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('agent/info/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                        <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('agent/info/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
           

                       
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('agent/info/edit')}" 
                           data-operate-del="{:$auth->check('agent/info/del')}" 
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
<script id="customformtpl" type="text/html">
    <!--form表单必须添加form-commsearch这个类-->
    <form action="" class="form-horizontal form-commonsearch nice-validator n-default n-bootstrap" autocomplete="off">
        <fieldset>
            <div class="row">

               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="agent_name" class="control-label col-xs-4">{:__('Agent_name')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="agent_name-operate" data-name="agent_name" value="like" readonly="" />
                 <input type="text" class="form-control" name="agent_name" value="" placeholder="{:__('Agent_name')}" id="agent_name" data-index="2" />
                </div>
               </div>
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="agent_phone" class="control-label col-xs-4">{:__('Agent_phone')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="agent_phone-operate" data-name="agent_phone" value="like" readonly="" />
                 <input type="text" class="form-control" name="agent_phone" value="" placeholder="{:__('Agent_phone')}" id="agent_phone" data-index="2" />
                </div>
               </div>        
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="address" class="control-label col-xs-4">{:__('Address')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="address-operate" data-name="address" value="like" readonly="" />
                 <input type="text" class="form-control" name="address" value="" placeholder="{:__('Address')}" id="address" data-index="2" />
                </div>
               </div>                
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="agent_contact" class="control-label col-xs-4">{:__('Agent_contact')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="agent_contact-operate" data-name="agent_contact" value="like" readonly="" />
                 <input type="text" class="form-control" name="agent_contact" value="" placeholder="{:__('Agent_contact')}" id="agent_contact" data-index="2" />
                </div>
               </div>   
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="address" class="control-label col-xs-4">{:__('Address')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="address-operate" data-name="address" value="like" readonly="" />
                 <input type="text" class="form-control" name="address" value="" placeholder="{:__('Address')}" id="address" data-index="2" />
                </div>
               </div>      
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="agent_region" class="control-label col-xs-4">{:__('agent_region')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="agent_region-operate" data-name="agent_region" value="like" readonly="" />
                 <input type="text" class="form-control" name="agent_region" value="" placeholder="{:__('agent_region')}" id="agent_region" data-index="2" />
                </div>
               </div>
       
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="term_start" class="control-label col-xs-4">{:__('Term_start')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="term_start-operate" data-name="term_start" value="RANGE" readonly="" />
                 <input type="text" class="form-control datetimerange" name="term_start" data-time-picker="true" data-use-current="true" value="" placeholder="{:__('Term_start')}" id="term_start" data-index="3" />
                </div>
               </div>        
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="term_end" class="control-label col-xs-4">{:__('Term_end')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="term_end-operate" data-name="term_end" value="RANGE" readonly="" />
                 <input type="text" class="form-control datetimerange" name="term_end" data-time-picker="true" data-use-current="true" value="" placeholder="{:__('Term_end')}" id="term_end" data-index="3" />
                </div>
               </div>
           
           
              <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="grade" class="control-label col-xs-4">{:__('Addre')}</label>
                 <div class="col-xs-8 form-inline" data-toggle="cxselect" data-selects="province,city,area">
                            <input type="hidden" class="form-control operate" name="province-operate" data-name="province" value="=" readonly="" />
                            <input type="hidden" class="form-control operate" name="city-operate" data-name="city" value="=" readonly="" />
                            <input type="hidden" class="form-control operate" name="area-operate" data-name="area" value="=" readonly="" />
                            <select class="province form-control" name="province" data-url="ajax/area"></select>
                            <select class="city form-control" name="city" data-url="ajax/area"></select>
                            <select class="area form-control" name="area" data-url="ajax/area"></select>
                </div>
               </div> 
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3  pull-right">
                    <div class="col-sm-8 col-xs-offset-4">
                        <button type="submit" class="btn btn-success" formnovalidate="">提交</button>
                        <button type="reset" class="btn btn-default">重置</button>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>
</script>